import request from '@/utils/request'

export function deleteWarehouseByWarehouseID(data) {
    return request({
        url: '/warehouse/deleteWarehouseByWarehouseID',
        method: 'post',
        data
    })
}

export function addWarehouse(data) {
    return request({
        url: '/warehouse/addWarehouse',
        method: 'post',
        data
    })
}

export function getWarehouseList(data) {
    return request({
        url: '/warehouse/getWarehouseList',
        method: 'get',
        params: data
    })
}

export function getWarehouseListByProductAndUserID(data) {
    return request({
        url: '/warehouse/getWarehouseListByProductAndUserID',
        method: 'get',
        params: data
    })
}
